package com.zyh.banner.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.zyh.common.annotation.Excel;
import com.zyh.common.core.domain.BaseEntity;

/**
 * 轮播图管理对象 t_banner
 *
 * @author zhangyangheng
 * @date 2025-03-18
 */
@TableName("t_banner")
public class Banner extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 轮播图ID（主键）
     */
    private Long bannerId;

    /**
     * 图片地址（存储图片路径或URL）
     */
    @Excel(name = "图片地址", readConverterExp = "存=储图片路径或URL")
    private String imageUrl;

    /**
     * 跳转链接（可为空，表示无跳转）
     */
    private String linkUrl;

    /**
     * 轮播图标题（展示用名称）
     */
    @Excel(name = "轮播图标题", readConverterExp = "展=示用名称")
    private String title;

    /**
     * 描述信息（富文本/长文本内容）
     */
    @Excel(name = "描述信息", readConverterExp = "富=文本/长文本内容")
    private String description;

    /**
     * 排序序号（越小越靠前）
     */
    @Excel(name = "排序序号", readConverterExp = "越=小越靠前")
    private Long sortOrder;

    /**
     * 状态：0-禁用 1-启用
     */
    @Excel(name = "状态：0-禁用 1-启用")
    private String status;

    /**
     * 有效性
     */
    private String delFlag;

    public void setBannerId(Long bannerId) {
        this.bannerId = bannerId;
    }

    public Long getBannerId() {
        return bannerId;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setSortOrder(Long sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Long getSortOrder() {
        return sortOrder;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("bannerId", getBannerId())
                .append("imageUrl", getImageUrl())
                .append("linkUrl", getLinkUrl())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("sortOrder", getSortOrder())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
